#include <stdio.h>
int main()
{
	int wei,shu;
	for(wei=1;wei<=10;wei++)
	{
		if(wei==1)
		{
			printf("       \n");
			continue;
		}
		if(wei==10)
		{
			printf("        \n");
			continue;
		}
		for(shu=2;shu<=9;shu++)
		printf("%d,%d ",wei,shu );
		printf("%d\n",wei);
		
	}
	return 0;
}
